package com.woniu.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class CreateCodeUtil {
    public String getCode(String str){
        String s = UUID.randomUUID().toString();
        String s1 = s.replaceAll("-", "");
        return str+"-"+s1.toUpperCase();
    }
}
